/**
 * Copyright 2018-2020 stylefeng & fengshuonan (sn93@qq.com)
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cdplife.ci.config.properties;

import cn.stylefeng.roses.core.util.ToolUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Properties;

/**
 * oss配置
 *
 * @author joe
 * @date 2018-11-13 09:50
 */
@Configuration
@ConfigurationProperties(prefix = OSSProperties.OSSCONF_PREFIX)
public class OSSProperties {

    public static final String OSSCONF_PREFIX = "oss";

    @Value("${oss.aliOSSEndpoint}")
    private String aliOSSEndpoint;

    @Value("${oss.aliOSSAccessKeyId}")
    private String aliOSSAccessKeyId;

    @Value("${oss.aliOSSAccessKeySecret}")
    private String aliOSSAccessKeySecret;

    @Value("${oss.aliOSSBucketName}")
    private String aliOSSBucketName;


	public String getAliOSSEndpoint() {
		return aliOSSEndpoint;
	}

	public void setAliOSSEndpoint(String aliOSSEndpoint) {
		this.aliOSSEndpoint = aliOSSEndpoint;
	}

	public String getAliOSSAccessKeyId() {
		return aliOSSAccessKeyId;
	}

	public void setAliOSSAccessKeyId(String aliOSSAccessKeyId) {
		this.aliOSSAccessKeyId = aliOSSAccessKeyId;
	}

	public String getAliOSSAccessKeySecret() {
		return aliOSSAccessKeySecret;
	}

	public void setAliOSSAccessKeySecret(String aliOSSAccessKeySecret) {
		this.aliOSSAccessKeySecret = aliOSSAccessKeySecret;
	}

	public String getAliOSSBucketName() {
		return aliOSSBucketName;
	}

	public void setAliOSSBucketName(String aliOSSBucketName) {
		this.aliOSSBucketName = aliOSSBucketName;
	}
    
	
}
